package net.models;

// Generated 16 avr. 2013 13:52:25 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Activitecompl generated by hbm2java
 */
@Entity
@Table(name = "activitecompl", catalog = "gsbcr")
public class Activitecompl extends AbstractModel {

	private Integer acNum;
	private Date acDate;
	private String acLieu;
	private String acTheme;
	private String acMotif;
	private Set<Inviter> inviters = new HashSet<Inviter>(0);
	private Set<Realiser> realisers = new HashSet<Realiser>(0);

	public Activitecompl() {
	}

	public Activitecompl(Date acDate, String acLieu, String acTheme,
			String acMotif, Set<Inviter> inviters, Set<Realiser> realisers) {
		this.acDate = acDate;
		this.acLieu = acLieu;
		this.acTheme = acTheme;
		this.acMotif = acMotif;
		this.inviters = inviters;
		this.realisers = realisers;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "acNum", unique = true, nullable = false)
	public Integer getAcNum() {
		return this.acNum;
	}

	public void setAcNum(Integer acNum) {
		Integer oldValue = this.acNum;
		this.acNum = acNum;
		firePropertyChange("acNum", oldValue, acNum);
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "acDate", length = 19)
	public Date getAcDate() {
		return this.acDate;
	}

	public void setAcDate(Date acDate) {
		Date oldValue = this.acDate;
		this.acDate = acDate;
		firePropertyChange("acDate", oldValue, acDate);
	}

	@Column(name = "acLieu", length = 25)
	public String getAcLieu() {
		return this.acLieu;
	}

	public void setAcLieu(String acLieu) {
		String oldValue = this.acLieu;
		this.acLieu = acLieu;
		firePropertyChange("acLieu", oldValue, acLieu);
	}

	@Column(name = "acTheme", length = 10)
	public String getAcTheme() {
		return this.acTheme;
	}

	public void setAcTheme(String acTheme) {
		String oldValue = this.acTheme;
		this.acTheme = acTheme;
		firePropertyChange("acTheme", oldValue, acTheme);
	}

	@Column(name = "acMotif", length = 50)
	public String getAcMotif() {
		return this.acMotif;
	}

	public void setAcMotif(String acMotif) {
		String oldValue = this.acMotif;
		this.acMotif = acMotif;
		firePropertyChange("acMotif", oldValue, acMotif);
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "activitecompl")
	public Set<Inviter> getInviters() {
		return this.inviters;
	}

	public void setInviters(Set<Inviter> inviters) {
		Set<Inviter> oldValue = this.inviters;
		this.inviters = inviters;
		firePropertyChange("inviters", oldValue, inviters);
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "activitecompl")
	public Set<Realiser> getRealisers() {
		return this.realisers;
	}

	public void setRealisers(Set<Realiser> realisers) {
		Set<Realiser> oldValue = this.realisers;
		this.realisers = realisers;
		firePropertyChange("realisers", oldValue, realisers);
	}

}
